Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ app.use(bodyParser.urlencoded({extended:true}))
app.use(fileUpload({createParentPath:true}))

app.use('/api',router)
app.use('/',(req,res)=>{
app.get('/',(req,res)=>{
res.send({
message : 'Welcome To Unofficial Otakudesu Rest Api',
createdBy : 'KaedeNoKi Team ♥️'
})
})
app.use('/api',(req,res) =>{
app.get('/api',(req,res) =>{
res.send({
message:'check our github for more info',
github :'https://github.com/Kaede-No-Ki/otakudesu-rest-api'
})
})


app.use('*',(req,res) =>{
app.get('*',(req,res) =>{
res.json({
'status':'not found path',
message: 'read the docs here https://github.com/Kaede-No-Ki/otakudesu-rest-api'
})
})
app.listen(port, () => {
console.log('listening on port', port)
})
})