Skip to content

Commit

Permalink
(API): fix api issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wcordelo committed Mar 1, 2024
1 parent c2291c2 commit 65dc80d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 deletions.
50 changes: 24 additions & 26 deletions apps/api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
import { Hono } from 'hono'
import { cors } from 'hono/cors'

import allowedTokens from './routes/allowed-tokens'
import did from './routes/did'
import gateway from './routes/gateway'
import metadata from './routes/metadata'
import oembed from './routes/oembed'
import recommendations from './routes/recommendations'
import signup from './routes/signup'
import sts from './routes/sts'
import tail from './routes/tail'
import toggles from './routes/toggles'
import tower from './routes/tower'
import verified from './routes/verified'
import views from './routes/views'
// import allowedTokens from './routes/allowed-tokens';
// import did from './routes/did';
// import gateway from './routes/gateway';
// import metadata from './routes/metadata';
// import oembed from './routes/oembed';
// import recommendations from './routes/recommendations';
// import signup from './routes/signup';
// import sts from './routes/sts';
// import toggles from './routes/toggles';
// import verified from './routes/verified';
// import views from './routes/views';

const app = new Hono()

app.use('*', cors())

app.get('/', (c) => c.text('dragverse.app'))

app.route('/did', did)
app.route('/sts', sts)
app.route('/tail', tail)
app.route('/tower', tower)
app.route('/views', views)
app.route('/oembed', oembed)
app.route('/signup', signup)
app.route('/gateway', gateway)
app.route('/toggles', toggles)
app.route('/metadata', metadata)
app.route('/verified', verified)
app.route('/allowed-tokens', allowedTokens)
app.route('/recommendations', recommendations)
// app.route('/did', did)
// app.route('/sts', sts)
// app.route('/tail', tail)
// app.route('/tower', tower)
// app.route('/views', views)
// app.route('/oembed', oembed)
// app.route('/signup', signup)
// app.route('/gateway', gateway)
// app.route('/toggles', toggles)
// app.route('/metadata', metadata)
// app.route('/verified', verified)
// app.route('/allowed-tokens', allowedTokens)
// app.route('/recommendations', recommendations)

export default app
2 changes: 1 addition & 1 deletion packages/constants/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const TAPE_EMBED_URL = IS_MAINNET
? 'https://embed.dragverse.app'
: 'https://embed-testnet.dragverse.app'
export const TAPE_API_URL = IS_PRODUCTION
? 'https://api.dragverse.app'
? 'https://api.tape.xyz'
: 'http://localhost:4000'

// tape addresses
Expand Down

0 comments on commit 65dc80d

Please sign in to comment.