api drop unused code
This commit is contained in:
1 parent
d859fdb302
commit
06745b45f4
26 files changed
+32
-788
No files matched your search
@@ -1,8 +1,6 @@
|
||||
import { config } from 'dotenv'
|
||||
import express from 'express'
|
||||
import { connect } from './db'
|
||||
import * as article from './controllers/article'
|
||||
import * as schedule from './controllers/schedule'
|
||||
import * as file from './controllers/file'
|
||||
import * as page from './controllers/page'
|
||||
import * as image from './controllers/image'
|
||||
@@ -23,10 +21,6 @@ async function main() {
|
||||
}
|
||||
|
||||
const app = express()
|
||||
app.get('/articles', article.getAll)
|
||||
app.get('/articles/urls', article.getUrls)
|
||||
app.get('/articles/:slug', article.getItem)
|
||||
|
||||
app.get('/files', file.getAll)
|
||||
app.get('/files/urls', file.getUrls)
|
||||
app.get('/files/:slug', file.getItem)
|
||||
@@ -38,7 +32,6 @@ async function main() {
|
||||
|
||||
app.get('/image', image.getItem)
|
||||
|
||||
app.get('/schedule', schedule.getItem)
|
||||
app.get('/tags', tag.getAll)
|
||||
app.get('/tags/:slug', tag.findItems)
|
||||
|
||||
|
||||
Reference in new issue
Block a user