TopList icon indicating copy to clipboard operation
TopList copied to clipboard

How to make GetType/GetTypeInfo work?

Open hp2oo1 opened this issue 6 years ago • 4 comments

Hi,

I am not sure how the api working? It seems something missing in this repository, i.e. how GetType/GetTypeInfo to interact with the database?

function getHotInfo() { $.ajax({ url:ServerIp+"/GetType", type:"GET", ...

I have got errors since there is no localhost/GetType: jquery.js:8623 GET http://127.0.0.1/GetType 404 (Not Found)

Please kindly help me with the issue. Thanks a lot!

hp2oo1 avatar Aug 11 '19 21:08 hp2oo1

In the globalConfig.js , there is the ServerIp const ServerIp = 'https://www.printf520.com:8080'

Darcyyaoting avatar Aug 13 '19 09:08 Darcyyaoting

@Darcyyaoting Thanks for reply but I am asking if I want to set Serverlp = "127.0.0.1" and run web server locally. Where can I find the code to handle GetType/GetTypeInfo. It seems those codes are missing in this repo.

hp2oo1 avatar Aug 13 '19 18:08 hp2oo1

I'm sorry to see your message now. I've uploaded the code to this repo,look Server.go

timeromantic avatar Aug 14 '19 17:08 timeromantic

@timeromantic Thanks a lot!

hp2oo1 avatar Aug 14 '19 23:08 hp2oo1