Rebase dengan menggunakan sqlite
This commit is contained in:
17
routes/index.js
Normal file
17
routes/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const express = require("express");
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/", (req, res) => {
|
||||
res.render("api/index", {
|
||||
title: "Otang | Rest Api Muslim",
|
||||
});
|
||||
});
|
||||
|
||||
router.get("/other", (req, res, next) => {
|
||||
res.render("api/other", {
|
||||
title: "Otang | Lainnya",
|
||||
layout: "./layouts/api",
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user